/*
 * @Descripttion:调用后端收藏接口的函数
 * @Author: congz
 * @Date: 2020-06-12 10:19:12
 * @LastEditors: congz
 * @LastEditTime: 2020-08-05 15:34:43
 */
import request from '@/api/utils/request'

export function addFavorite(form) {

  let target = '/addFavorite/'
  return request.post(target, form)
}


// 读取收藏夹
export function showFavorites(user_id, start, limit) {

  let target = '/showFavorites/'
  let data = {
    user_id: user_id,
    start: start,
    limit: limit
  }
  return request.post(target, data)
}

//删除收藏
export function deleteFavorite(form) {
  let target = '/deleteFavorite/'
  return request.post(target, form)
}


